/**
 * 
 */
package study;

/**
 * @author admin
 *
 */
import java.io.*;
public class Test_4 {
	public void inputStream(String scr)throws IOException{
		FileInputStream fis=new FileInputStream(scr);
		InputStreamReader isr=new InputStreamReader(fis,"UTF-8");
		BufferedReader br=new BufferedReader(isr);
		String s="";
		StringBuilder input=new StringBuilder();
		while((s=br.readLine())!=null){
			input.append(s);
		}
		System.out.print(input);
		br.close();
		isr.close();
	}
	/**
	 * @param args
	 */
	public static void main(String[] args)throws IOException{
		// TODO Auto-generated metho
		Test_4 t=new Test_4();
		t.inputStream("E:\\myProject\\dengyufen\\src\\study\\CopyFile.java");
	}

}
